package factory;

import factory.pizza.CheesePizza;
import factory.pizza.GreekPizza;
import factory.pizza.Pizza;

public class SimplePizzaFactory {

    public Pizza createPizza(String type){
        Pizza pizza = null;
        if(type.equals("cheezePizza")){
            pizza = new CheesePizza();
        }else {
            pizza = new GreekPizza();
        }
        return pizza;
    }

}
